<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="../../../../../WEB-INF/myTag.tld" prefix="my"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0"> 
<title>临桂公安局民警动态管理调查统计季报表（整改表）（表四）</title>
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/bootstrap.min.css?v=3.3.5"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/font-awesome.min.css?v=4.4.0"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/animate.min.css"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/style.min.css?v=4.0.0"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/toastr/toastr.min.css"
	rel="stylesheet">

<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/iCheck/custom.css"
	rel="stylesheet">
<link
	href="<%=request.getContextPath()%>/views/sysdefault/css/table_style.css"
	rel="stylesheet">
</head>

<body class="gray-bg">

<div class="animated fadeInRight">
		<div class="row">
			<div class="col-xs-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<!-- <h5>添加/修改新闻</h5>
						<div class="ibox-tools">
							<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
							</a>
						</div> -->
						<ul class="nav nav-tabs">
							<li class="active"><a data-toggle="tab" href="#tab-1"><i
									class="fa fa-user"></i>民警动态管理调查统计季报表（整改表）—— 审核</a></li>
									<div class="col-lg-7 col-md-7 col-sm-3 col-xs-1"></div>
                    		<button type="button" class="btn btn-success glyphicon glyphicon-triangle-left btn-sm 
                    		col-lg-1 col-md-1 col-sm-3 col-xs-3" onclick="backList();">
                    		返回</button>

						</ul>
					</div>

					<div class="ibox-content">
						<input type="hidden" id="fileUploadIp" value="${fileUploadIp}" />
						<input type="hidden" id="tableId" value="${fourRectification.tableId}" />
						<form action="<%=request.getContextPath()%>/bgGlutTableFourRectification/addTable.do"
							id="subForm" method="post" class="form-horizontal"
							onsubmit="return (beforeSub() && checkSubmit());" enctype="multipart/form-data">
							
							<input type="hidden" id="tableId" name="tableId" value="${fourRectification.tableId}" /> 
							<input type="hidden" id="status" name="status" value="1" />

							<div class="table-responsive tab-content">

								<!-- *************新闻tab页**************** -->
								<div id="tab-1" class="tab-pane active">
									<%-- <div class="full-height-scroll">
										<div class="form-group col-xs-6 col-xs-12">
											<label class="col-xs-3 control-label">呈报单位及呈报人:</label>
											<div class="col-xs-6">
												<span>${fourRectification.company}&nbsp;&nbsp;&nbsp;&nbsp;${fourRectification.DReportP}</span>
											</div>
										</div>
										<div class="form-group col-xs-6 col-xs-12" id="data_1">
											<label class="control-label col-xs-2">填报日期</label>
											<label class="col-xs-2 control-label"></label>
										</div> --%>
										<div class="form-group col-lg-12 col-md-12  col-sm-12 col-xs-12">
											<div class="col-lg-12 col-md-12  col-sm-12 col-xs-12">
												<input type="hidden" name="company" value="${fourRectification.company}"/>
												<input type="hidden" name="DReportP" value="${fourRectification.DReportP}"/>
												<input type="hidden" id="reportTime" name="reportTime" />
											    <label class="control-label col-lg-2 col-md-2  col-sm-12 col-xs-12 ">呈报单位及呈报人:</label>
												<label class="control-label col-lg-5 col-md-5 col-sm-12 col-xs-12 " style="text-align:left;">${fourRectification.company}&nbsp;&nbsp;&nbsp;&nbsp;${fourRectification.DReportP}</label>
												<label class="control-label col-lg-3 col-md-3 col-sm-12 col-xs-12">填报日期:</label>
											    <label class="control-label col-lg-2 col-md-2 col-sm-12 col-xs-12 time"  style="text-align:left;">
											    <my:DateSubString date="${fourRectification.DReportTime }" subNum="16"/>
											    </label>
											</div>
										</div>
										<div class="row div-table" >
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-2 hidden-sm hidden-xs" style="height: 632px;">
												<div class="subwrap">
													<div class="content">单位提出整改措施和意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">单位提出整改措施和意见</div>
												</div>
											</div>
											<!-- 大屏时显示 -->
											<div class="col-lg-4 col-md-5 hidden-sm hidden-xs" style="height: 124px;">
												<div class="subwrap">
													<div class="content">针对存在问题方面提出（针对表一所列的第一方面17项问题）</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content">针对存在问题方面提出（针对表一所列的第一方面17项问题）</div>
												</div>
											</div>
											<div class="col-lg-7 col-md-5 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style notLess1" name="problem" rows="4" 
															maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															disabled>${fourRectification.problem}</textarea>
													</div>
												</div>
											</div>
											
											
											<!-- 大屏时显示 -->
											<div class="col-lg-4 col-md-5 hidden-sm hidden-xs" style="height:96px;">
												<div class="subwrap">
													<div class="content">针对健康状况方面提出</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content">针对健康状况方面提出</div>
												</div>
											</div>
											<div class="col-lg-7 col-md-5 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style notLess2" rows="3" name="health"
															maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															disabled>${fourRectification.health}</textarea>
													</div>
												</div>
											</div>
											
											
											<!-- 大屏时显示 -->
											<div class="col-lg-4 col-md-5 hidden-sm hidden-xs" style="height: 96px;">
												<div class="subwrap">
													<div class="content">针对婚姻、家庭、经济状况方面提出</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content">针对婚姻、家庭、经济状况方面提出</div>
												</div>
											</div>
											<div class="col-lg-7 col-md-5 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style notLess3" rows="3" name="personal"
															maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															disabled>${fourRectification.personal}</textarea>
													</div>
												</div>
											</div>
											
											
											<!-- 大屏时显示 -->
											<div class="col-lg-4 col-md-5 hidden-sm hidden-xs" style="height: 96px;">
												<div class="subwrap">
													<div class="content">针对其他问题提出</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content">针对其他问题提出</div>
												</div>
											</div>
											<div class="col-lg-7 col-md-5 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style notLess4" rows="3" name="otherPro"
															maxlength="300" style="line-height:2.0;outline:none;resize:none;"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)" disabled>${fourRectification.otherPro}</textarea>
													</div>
												</div>
											</div>
											
											
											<!-- <div class="col-lg-10 col-md-10 col-sm-12 col-xs-12"style="padding:0px;height: 180px;" >
												<div class="subwrap" style="padding:0;">
													<div class="content"> -->
														<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"style="border:0px;height:auto">
															<div class="subwrap">
																<div class="content">
																          单位主管领导签字：
																	<c:if test="${not empty fourRectification.lerderSignA}">
																		<div id="imgdiv_1" class="imgname">
																			<img id="imgShow_1" width="100%" height="100%"
																				style="cursor: pointer;" 
																				   src="http://localhost:8086/images/${fourRectification.lerderSignA}" />
																		</div>
																		<span id="img_1">${fourRectification.lerderSignATime}</span>
																	</c:if>
																	<c:if test="${empty fourRectification.lerderSignA}">
																		<div id="imgdiv_1" class="imgname">
																			<img id="imgShow_1" width="100%" height="100%"
																				style="cursor: pointer;" 
																				   src="http://localhost:8086/images/201703311621574260.png"
																				onclick="clickImg('deldisabled1', 'imgShow_1', 800);getDate('img_1','date_img_1');" />
																		</div>
																		<input type="hidden" id="deldisabled1" name="lerderSignA" />
																		<span id="img_1">年　　月　　日</span>
																		<input type="hidden" id="date_img_1" name="lerderSignATime" />
																	</c:if>
																</div>
															</div>
														</div>
														<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"style="border:0px;height:auto">
															<div class="subwrap">
																<div class="content">
																	单位监管领导签字：
																	<c:if test="${not empty fourRectification.leaderSignB}">
																		<div id="imgdiv_2" class="imgname">
																			<img id="imgShow_2" width="100%" height="100%"
																				style="cursor: pointer;" 
																				src="http://localhost:8086/images/${fourRectification.leaderSignB}" />
																		</div>
																		<span id="img_2">${fourRectification.lerderSignBTime}</span>
																	</c:if>
																	<c:if test="${empty fourRectification.leaderSignB}">
																		<div id="imgdiv_2" class="imgname">
																			<img id="imgShow_2" width="100%" height="100%"
																				style="cursor: pointer;" 
																				src="http://localhost:8086/images/201703311621574260.png"
																				onclick="clickImg('deldisabled2', 'imgShow_2', 800);getDate('img_2','date_img_2');" />
																		</div>
																		<input type="hidden" id="deldisabled2" name="leaderSignB" />
																		<span id="img_2">年　　月　　日</span>
																		<input type="hidden" id="date_img_2" name="lerderSignBTime" />
																	</c:if>
																</div>
															</div>
														</div>
														
													<!-- </div>
												</div>
											</div> -->
											
											<!-- 大屏时显示 -->
											<%-- <div class="col-lg-5 col-md-5 hidden-sm hidden-xs">
												<div class="subwrap">
													<div class="content align-left">
														单位主管领导签字：
														<c:if test="${not empty fourRectification.lerderSignA}">
															<div id="imgdiv_1" class="imgname">
																<img id="imgShow_1" width="100%" height="100%"
																	style="cursor: pointer;" 
																	   src="http://192.168.1.111:8086/images/${fourRectification.lerderSignA}" />
															</div>
															<span id="img_1">${fourRectification.lerderSignATime}</span>
														</c:if>
														<c:if test="${empty fourRectification.lerderSignA}">
															<div id="imgdiv_1" class="imgname">
																<img id="imgShow_1" width="100%" height="100%"
																	style="cursor: pointer;" 
																	   src="http://192.168.1.111:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled1', 'imgShow_1', 800);getDate('img_1','date_img_1');" />
															</div>
															<input type="hidden" id="deldisabled1" name="lerderSignA" />
															<span id="img_1">年　　月　　日</span>
															<input type="hidden" id="date_img_1" name="lerderSignATime" />
														</c:if>
													</div>
												</div>
											</div> --%>
											<!-- 小屏时显示 -->
											<%-- <div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content align-left">
														单位主管领导签字：
														<c:if test="${not empty fourRectification.lerderSignA}">
															<div id="imgdiv_1" class="imgname">
																<img id="imgShow_1" width="100%" height="100%"
																	style="cursor: pointer;" 
																	   src="http://192.168.1.111:8086/images/${fourRectification.lerderSignA}" />
															</div>
															<span id="img_1">${fourRectification.lerderSignATime}</span>
														</c:if>
														<c:if test="${empty fourRectification.lerderSignA}">
															<div id="imgdiv_1" class="imgname">
																<img id="imgShow_1" width="100%" height="100%"
																	style="cursor: pointer;" 
																	   src="http://192.168.1.111:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled1', 'imgShow_1', 800);getDate('img_1','date_img_1');" />
															</div>
															<input type="hidden" id="deldisabled1" name="lerderSignA" />
															<span id="img_1">年　　月　　日</span>
															<input type="hidden" id="date_img_1" name="lerderSignATime" />
														</c:if>
													</div>
												</div>
											</div> --%>
											<!-- 大屏时显示 -->
											<%-- <div class="col-lg-6 col-md-5 hidden-sm hidden-xs" >
												<div class="subwrap">
													<div class="content align-left">
														单位监管领导签字：
														<c:if test="${not empty fourRectification.leaderSignB}">
															<div id="imgdiv_2" class="imgname">
																<img id="imgShow_2" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://192.168.1.111:8086/images/${fourRectification.leaderSignB}" />
															</div>
															<span id="img_2">${fourRectification.lerderSignBTime}</span>
														</c:if>
														<c:if test="${empty fourRectification.leaderSignB}">
															<div id="imgdiv_2" class="imgname">
																<img id="imgShow_2" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://192.168.1.111:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled2', 'imgShow_2', 800);getDate('img_2','date_img_2');" />
															</div>
															<input type="hidden" id="deldisabled2" name="leaderSignB" />
															<span id="img_2">年　　月　　日</span>
															<input type="hidden" id="date_img_2" name="lerderSignBTime" />
														</c:if>
													</div>
												</div>
											</div> --%>
											<!-- 小屏时显示 -->
											<%-- <div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height">
												<div class="subwrap">
													<div class="content align-left">
														单位监管领导签字：
														<c:if test="${not empty fourRectification.leaderSignB}">
															<div id="imgdiv_2" class="imgname">
																<img id="imgShow_2" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://192.168.1.111:8086/images/${fourRectification.leaderSignB}" />
															</div>
															<span id="img_2">${fourRectification.lerderSignBTime}</span>
														</c:if>
														<c:if test="${empty fourRectification.leaderSignB}">
															<div id="imgdiv_2" class="imgname">
																<img id="imgShow_2" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://192.168.1.111:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled2', 'imgShow_2', 800);getDate('img_2','date_img_2');" />
															</div>
															<input type="hidden" id="deldisabled2" name="leaderSignB" />
															<span id="img_2">年　　月　　日</span>
															<input type="hidden" id="date_img_2" name="lerderSignBTime" />
														</c:if>
													</div>
												</div>
											</div> --%>
											
											
											
											
											
											
											
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-2 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">政工室主任意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">政工室主任意见</div>
												</div>
											</div>
											<div class="col-lg-11 col-md-10 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style yijian" id="deldisabled3" rows="2" name="sugZgs" disabled
													maxlength="300"style="outline:none;resize:none;"
															>${fourRectification.sugZgs}</textarea>
													<c:if test="${not empty fourRectification.sugZgsTime}">
													    <span>${fourRectification.sugZgsTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.sugZgsTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugZgsTime" />
													</c:if>
													</div>
												</div>
											</div>
											
											
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-2 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">分管局领导意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">分管局领导意见</div>
												</div>
											</div>
											<div class="col-lg-11 col-md-10 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style yijian" id="deldisabled4" rows="2" name="sugFgj" disabled
													maxlength="300"style="outline:none;resize:none;"
															>${fourRectification.sugFgj}</textarea>
													<c:if test="${not empty fourRectification.sugFgjTime}">
													    <span>${fourRectification.sugFgjTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.sugFgjTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugFgjTime" />
													</c:if>
													</div>
												</div>
											</div>
											
											
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-2 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">纪委书记意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">纪委书记意见</div>
												</div>
											</div>
											<div class="col-lg-11 col-md-10 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style yijian" id="deldisabled5" rows="2" name="sugJwsj" disabled
													maxlength="300"style="outline:none;resize:none;"
															>${fourRectification.sugJwsj}</textarea>
													<c:if test="${not empty fourRectification.sugJwsjTime}">
													    <span>${fourRectification.sugJwsjTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.sugJwsjTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugJwsjTime" />
													</c:if>
													</div>
												</div>
											</div>
											
											
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-2 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">政委意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">政委意见</div>
												</div>
											</div>
											<div class="col-lg-11 col-md-10 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style yijian" id="deldisabled6" rows="2" name="sugZw" disabled
													maxlength="300"style="outline:none;resize:none;"
															>${fourRectification.sugZw}</textarea>
													<c:if test="${not empty fourRectification.sugZwTime}">
													    <span>${fourRectification.sugZwTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.sugZwTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugZwTime" />
													</c:if>
													</div>
												</div>
											</div>
											
											
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-2 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">局长意见</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">局长意见</div>
												</div>
											</div>
											<div class="col-lg-11 col-md-10 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style yijian" id="deldisabled7" rows="2" name="sugJz"disabled
													maxlength="300"style="outline:none;resize:none;"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.sugJz}</textarea>
													<c:if test="${not empty fourRectification.sugJzTime}">
													    <span>${fourRectification.sugJzTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.sugJzTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugJzTime" />
													</c:if>
													</div>
												</div>
											</div>
											
											
											<!-- 大屏时显示 -->
											<div class="col-lg-1 col-md-2 hidden-sm hidden-xs" style="height: 114px;">
												<div class="subwrap">
													<div class="content">落实情况登记（由分管局领导填写）</div>
												</div>
											</div>
											<!-- 小屏时显示 -->
											<div class="col-sm-12 col-xs-12 hidden-lg hidden-md min-height" >
												<div class="subwrap">
													<div class="content">落实情况登记（由分管局领导填写）</div>
												</div>
											</div>
											<div class="col-lg-11 col-md-10 col-sm-12 col-xs-12">
												<div class="subwrap">
													<div class="content">
														<textarea class="form-control text_style yijian" id="deldisabled8" rows="2" name="register"disabled
													maxlength="300"style="outline:none;resize:none;"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.register}</textarea>
													<c:if test="${not empty fourRectification.registerTime}">
													    <span>${fourRectification.registerTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.registerTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="registerTime" />
													</c:if>
													</div>
												</div>
											</div>
										
										</div>
										
										<%-- <div class="col-xs-12">
										
											<table class="table table-bordered">
												 <tr>
													<td class="label_style col-xs-1" rowspan="5">单位提出整改措施和意见</td>												
													<td class="label_style col-xs-2">针对存在问题方面提出（针对表一所列的第一方面17项问题）</td>
													<td class="label_style col-xs-9">
													<textarea class="form-control text_style" name="problem" rows="4" disabled="disabled"
													maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.problem}</textarea>
													</td>									
												</tr> 
												 <tr>											
													<td class="label_style col-xs-2">针对健康状况方面提出</td>
													<td class="label_style col-xs-9">
													<textarea class="form-control text_style" rows="3" name="health" disabled
													maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.health}</textarea>
													</td>									
												</tr> 
												<tr>											
													<td class="label_style col-xs-2">针对婚姻、家庭、经济状况方面提出</td>
													<td class="label_style col-xs-9">
													<textarea class="form-control text_style" rows="3" name="personal" disabled
													maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.personal}</textarea>
													</td>
												</tr>
												<tr>											
													<td class="label_style col-xs-2">针对其他问题提出</td>
													<td class="label_style col-xs-9">
													<textarea class="form-control text_style" rows="3" name="otherPro" disabled
													maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.otherPro}</textarea>
													</td>
												</tr>
												<tr>										
													<td class="label_style col-xs-5" >
														单位主管领导签字：
														<c:if test="${not empty fourRectification.lerderSignA}">
															<div id="imgdiv_1" class="imgname">
																<img id="imgShow_1" width="100%" height="100%"
																	style="cursor: pointer;" 
																	   src="http://localhost:8086/images/${fourRectification.lerderSignA}" />
															</div>
															<span id="img_1">${fourRectification.lerderSignATime}</span>
														</c:if>
														<c:if test="${empty fourRectification.lerderSignA}">
															<div id="imgdiv_1" class="imgname">
																<img id="imgShow_1" width="100%" height="100%"
																	style="cursor: pointer;" 
																	   src="http://localhost:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled1', 'imgShow_1', 800);getDate('img_1','date_img_1');" />
															</div>
															<input type="hidden" id="deldisabled1" name="lerderSignA" />
															<span id="img_1">年　　月　　日</span>
															<input type="hidden" id="date_img_1" name="lerderSignATime" />
														</c:if>
														
													</td>	
													<td class="label_style col-xs-5" >
														单位监管领导签字：
														<c:if test="${not empty fourRectification.leaderSignB}">
															<div id="imgdiv_2" class="imgname">
																<img id="imgShow_2" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/${fourRectification.leaderSignB}" />
															</div>
															<span id="img_2">${fourRectification.lerderSignBTime}</span>
														</c:if>
														<c:if test="${empty fourRectification.leaderSignB}">
															<div id="imgdiv_2" class="imgname">
																<img id="imgShow_2" width="100%" height="100%"
																	style="cursor: pointer;" 
																	src="http://localhost:8086/images/201703311621574260.png"
																	onclick="clickImg('deldisabled2', 'imgShow_2', 800);getDate('img_2','date_img_2');" />
															</div>
															<input type="hidden" id="deldisabled2" name="leaderSignB" />
															<span id="img_2">年　　月　　日</span>
															<input type="hidden" id="date_img_2" name="lerderSignBTime" />
														</c:if>
													</td>													
												</tr>
												<tr>
													<td class="label_style col-xs-1" >政工室主任意见</td>												
													<td class="label_style col-xs-11" colspan="2">
													<textarea class="form-control text_style yijian" id="deldisabled3" rows="2" name="sugZgs" disabled
													maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.sugZgs}</textarea>
													<c:if test="${not empty fourRectification.sugZgsTime}">
													    <span>${fourRectification.sugZgsTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.sugZgsTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugZgsTime" />
													</c:if>
													
													</td>									
												</tr> 
												<tr>
													<td class="label_style col-xs-1" >分管局领导意见</td>												
													<td class="label_style col-xs-11" colspan="2">
													<textarea class="form-control text_style yijian" id="deldisabled4" rows="2" name="sugFgj" disabled
													maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.sugFgj}</textarea>
													<c:if test="${not empty fourRectification.sugFgjTime}">
													    <span>${fourRectification.sugFgjTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.sugFgjTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugFgjTime" />
													</c:if>
													</td>									
												</tr> 
												<tr>
													<td class="label_style col-xs-1" >纪委书记意见</td>												
													<td class="label_style col-xs-11" colspan="2">
													<textarea class="form-control text_style yijian" id="deldisabled5" rows="2" name="sugJwsj" disabled
													maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.sugJwsj}</textarea>
													<c:if test="${not empty fourRectification.sugJwsjTime}">
													    <span>${fourRectification.sugJwsjTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.sugJwsjTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugJwsjTime" />
													</c:if>
													</td>									
												</tr> 
												<tr>
													<td class="label_style col-xs-1" >政委意见</td>												
													<td class="label_style col-xs-11" colspan="2">
													<textarea class="form-control text_style yijian" id="deldisabled6" rows="2" name="sugZw" disabled
													maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.sugZw}</textarea>
													<c:if test="${not empty fourRectification.sugZwTime}">
													    <span>${fourRectification.sugZwTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.sugZwTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugZwTime" />
													</c:if>
													</td>									
												</tr> 
												<tr>
													<td class="label_style col-xs-1" >局长意见</td>												
													<td class="label_style col-xs-11" colspan="2">
													<textarea class="form-control text_style yijian" id="deldisabled7" rows="2" name="sugJz"disabled
													maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.sugJz}</textarea>
													<c:if test="${not empty fourRectification.sugJzTime}">
													    <span>${fourRectification.sugJzTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.sugJzTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="sugJzTime" />
													</c:if>
													</td>									
												</tr> 
												<tr>
													<td class="label_style col-xs-1" >落实情况登记（由分管局领导填写）</td>												
													<td class="label_style col-xs-11" colspan="2">
													<textarea class="form-control text_style yijian" id="deldisabled8" rows="2" name="register"disabled
													maxlength="300"
															onchange="this.value=this.value.substring(0, 300)" 
															onkeydown="this.value=this.value.substring(0, 300)" 
															onkeyup="this.value=this.value.substring(0, 300)">${fourRectification.register}</textarea>
													<c:if test="${not empty fourRectification.registerTime}">
													    <span>${fourRectification.registerTime}</span>
													</c:if>
													<c:if test="${empty fourRectification.registerTime}">
														<span>年　　月　　日</span>
														<input type="hidden" name="registerTime" />
													</c:if>
													</td>									
												</tr> 																							
											</table>
										</div> --%> 
									</div>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<div class="col-xs-12">
									<button class="btn btn-primary pull-right m-t-n-xs" id="save"
										type="submit">提交</button>
								</div>
							</div>
						</form>

					</div>
				</div>
			</div>
		</div>
	</div>
</body>

<script type="text/javascript">
		//var fileUploadIp = $("#fileUploadIp").val();
		window.UEDITOR_UPLOAD_URL = '<%=request.getAttribute("fileUploadIp")%>';
	</script>

	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js?v=2.1.4"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/bootstrap.min.js?v=3.3.5"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/content.min.js?v=1.0.0"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/toastr/toastr.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/layer/layer.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/iCheck/icheck.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/views/sysdefault/js/uploadPreview.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/datapicker/bootstrap-datepicker.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/clockpicker/clockpicker.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/cropper/cropper.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/demo/form-advanced-demo.min.js"></script>
	<!-- 富文本编辑器 -->
	<script type="text/javascript" charset="utf-8"
		src="<%=request.getContextPath()%>/views/sysdefault/plugins/uEditor/ueditor.config.js"></script>
	<script type="text/javascript" charset="utf-8"
		src="<%=request.getContextPath()%>/views/sysdefault/plugins/uEditor/ueditor.all.min.js"> </script>
	<script type="text/javascript" charset="utf-8"
		src="<%=request.getContextPath()%>/views/sysdefault/plugins/uEditor/lang/zh-cn/zh-cn.js"></script>
	<!-- 引入一个jQuery 用于初始化界面 -->
	<script
		src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js"></script>
	<script type="text/javascript">
        var basePath = '<%=request.getContextPath()%>';
        
        //定义图片服务器IP地址
	    var ImageServer = "http://192.168.1.111:8086/images/";
        //签字div中img标签对应的id值
		var imgId = "";
        //签字div中隐藏的input对应的ID值
		var inputId = "";
		//初始化富文本编辑器
		var ue = UE.getEditor('editor');
		toastr.options = {
			"closeButton" : true,
			"debug" : false,
			"progressBar" : true,
			"positionClass" : "toast-top-left",
			"showDuration" : "400",
			"hideDuration" : "1000",
			"timeOut" : "3000",
			"extendedTimeOut" : "1000",
			"showEasing" : "swing",
			"hideEasing" : "linear",
			"showMethod" : "fadeIn",
			"hideMethod" : "fadeOut"
		}

		function setShowLength(obj, maxlength, id) {
			var rem = maxlength - obj.value.length;
			var wid = id;
			if (rem < 0) {
				rem = 0;
			}
			document.getElementById(wid).innerHTML = "还可以输入" + rem + "个字符";
		}
		
		
		//获取两个签字标识和一个顺序标识
		var lerderSignAjs = '<%=request.getAttribute("lerderSignAjs")%>';
        var leaderSignBjs = '<%=request.getAttribute("leaderSignBjs")%>';
        var DSequenceMarkjs = '<%=request.getAttribute("DSequenceMarkjs")%>';
        var DSequenceMarkjsNum = parseInt(DSequenceMarkjs);
        var charge = '<%=request.getAttribute("charge")%>';
		//初始化页面
		$(function() {
			debugger;
			//<!-- 有单位主管和单位监管的情况 -->charge=='hasTwoCharge'
			//有单位主管he单位监管之一的情况
			if(charge=='hasTwoCharge'){
				/*  $("#imgShow_1").attr("onclick","clickImg('up_img_1', 'imgShow_1', 800);getDate('img_1','date_img_1');");
				$("#imgShow_2").attr("onclick","clickImg('up_img_2', 'imgShow_2', 800);getDate('img_2','date_img_2');"); */
				//第一个没有签字   第二个也没有签字  需要去除第二个得 onclick 属性
				if(lerderSignAjs=='null' && leaderSignBjs=='null'){
					
					$("#imgShow_2").removeAttr("onclick");
				}
				//第一个签字了  第二个没有签字  只需要去除第一个得 onclick 属性
				if(lerderSignAjs!='null' && leaderSignBjs=='null'){
					
					$("#imgShow_1").removeAttr("onclick");
				}
				//第一个签字了  第二个也签字了  需要都去除两个的 onclick 属性
				if(lerderSignAjs!='null' && leaderSignBjs!='null'){
					$("#imgShow_1").removeAttr("onclick");
					$("#imgShow_2").removeAttr("onclick");
				}
				//第二个签字了 第一个没有签字  这种情况是不存在的
				
				//出去政工室主任意见以下的摸个输入框的disable属性
				if(eval(DSequenceMarkjsNum) > eval(1)){
					$("#deldisabled"+eval(DSequenceMarkjsNum+1)).removeAttr("disabled");
				}
			}else{
				$("#imgShow_1").removeAttr("onclick");
				$("#imgShow_2").removeAttr("onclick");
				if(eval(DSequenceMarkjsNum+2) > eval(2)){
					$("#deldisabled"+eval(DSequenceMarkjsNum+2)).removeAttr("disabled");
				}
			}
	       
			
			$(".i-checks").iCheck({
				checkboxClass : "icheckbox_square-green",
				radioClass : "iradio_square-green",
			});
			//禁止后退键 作用于Firefox、Opera
			document.onkeypress = banBackSpace;
			//禁止后退键  作用于IE、Chrome
			document.onkeydown = banBackSpace;
			
		});
		//提交表单前校验
		function beforeSub() {
			if(charge=='hasTwoCharge'){
				if($("#deldisabled"+DSequenceMarkjsNum).val()==''){
					toastr.warning("您还没有审核完成", "提示");
					return false;
				}
				
				return true;
			}else{
				if($("#deldisabled"+eval(DSequenceMarkjsNum+2)).val()==''){
					toastr.warning("你还没有审核完成", "提示");
					return false;
				}
				return true;
			}
			
		}
		function checkSubmit(){
			debugger;
		    var mId=$("#tableId").val();
		    var temp=false;
		    $.ajax({
				type : "POST",
				url : basePath + "/bgGlutTableFourRectification/checkIsBeCheck.do",
				data : {"tId" : mId},
				dataType : "json",
				async: false,//将ajax设置为同步
				success : function(msg) {
					if (msg.errCode == '1') {
						temp=true;
					}else{
						layer.msg(msg.errMsg, {icon: 5});
					}
				},
				error : function(XMLHttpRequest, textStatus, errorThrown) {
					layer.msg("系统出错", {icon: 5});
				}	
			});
		    return temp;
		}
		//生成时间
		var getDate=function(date,dateHide){
			function getNowFormatDate() {
    		    var date = new Date();
    		    var seperator1 = "年";
    		    var seperator2 = "月";
    		    var seperator3 = "日";
    		    var month = date.getMonth() + 1;
    		    var strDate = date.getDate();
    		    if (month >= 1 && month <= 9) {
    		        month = "0" + month;
    		    }
    		    if (strDate >= 0 && strDate <= 9) {
    		        strDate = "0" + strDate;
    		    }
    		    var currentdate = date.getFullYear() + seperator1 + month + seperator2  +strDate +seperator3
    		    return currentdate;
    	    }
			$("#"+date).html(getNowFormatDate());
			$("#"+dateHide).val(getNowFormatDate());
		}
		//响应签名功能
		var clickImg = function(mInputId, mImgId, imgageCompress) {
			inputId = mInputId;
			imgId = mImgId;

			layer.open({
				type : 2,
				title : "电子签名",
				fix : false, //不固定
				maxmin : false,
				shadeClose : true,
				shade : 0.3,
				area : [ '80%', '90%' ],
				content : basePath + '/common/signImage.dop?imageCompress=' + imgageCompress
			});
		}
		//弹出框选择回调函数
		var selectCallBack2 = function(base64Codes) {
			debugger;
		    var form=document.forms[0];  
		    var formData = new FormData(form);   //这里连带form里的其他参数也一起提交了,如果不需要提交其他参数可以直接FormData无参数的构造函数  
		    //convertBase64UrlToBlob函数是将base64编码转换为Blob  
		    formData.append("file",convertBase64UrlToBlob(base64Codes));  //append函数的第一个参数是后台获取数据的参数名,和html标签的input的name属性功能相同
		    //设置表三的保存的文件名称
			formData.append("savetablefilename","tablefourrectification"),
		    //ajax 提交form  
		    $.ajax({  
		        url : basePath+"/common/uploadFile.idop" ,  
		        type : "POST",  
		        data : formData,  
		        dataType:"text",  
		        processData : false,         // 告诉jQuery不要去处理发送的数据  
		        contentType : false,        // 告诉jQuery不要去设置Content-Type请求头  
		        success:function(msg){  
		           // window.location.href="${ctx}"+data;  
		           var data= JSON.parse(msg);
		           if(data.errCode !='1'){
		        	   debugger;
		        	   layer.msg('签名失败！', {icon: 5});
		           }
		           if(data.errCode =='1'){
		        	   debugger;
		        	   layer.msg('签名成功！', {icon: 6});
		        	   //回显示图片数据
		        	   echoImageData(data.data);
		           }
		        },  	          
		    });  
			layer.closeAll();
		}
		/**  
		 * 将以base64的图片url数据转换为Blob  
		 * 用url方式表示的base64图片数据  
		 */  
		function convertBase64UrlToBlob(urlData){  
		    debugger;
		    //var bytes=decodeURIComponent(window.atob(urlData.split(',')[1]));
		    var bytes=window.atob(urlData.split(',')[1]);         //去掉url的头，并转换为byte  
		    //处理异常,将ascii码小于0的转换为大于0  
		    var ab = new ArrayBuffer(bytes.length);  
		    var ia = new Uint8Array(ab);  
		    for (var i = 0; i < bytes.length; i++) {  
		        ia[i] = bytes.charCodeAt(i);  
		    }  
		    return new Blob( [ab] , {type : 'image/png'});  
		} 
		//回显示图片数据
		function echoImageData(imgUrl){
			// 根据clickImg传递的mInputId并赋值给全局变量inputId 为其赋值
			$("#"+imgId).attr("src", ImageServer+imgUrl);
			//为对应的name属性值赋值
			$("#"+inputId).val(imgUrl);;
			return true;
		}

		//处理键盘事件 禁止后退键（Backspace）密码或单行、多行文本框除外
		function banBackSpace(e) {
			var ev = e || window.event;//获取event对象   
			var obj = ev.target || ev.srcElement;//获取事件源   
			var t = obj.type || obj.getAttribute('type');//获取事件源类型  
			//获取作为判断条件的事件类型
			var vReadOnly = obj.getAttribute('readonly');
			//处理null值情况
			vReadOnly = (vReadOnly == "") ? false : vReadOnly;
			//当敲Backspace键时，事件源类型为密码或单行、多行文本的，
			//并且readonly属性为true或enabled属性为false的，则退格键失效
			var flag1 = (ev.keyCode == 8
					&& (t == "password" || t == "text" || t == "textarea") && vReadOnly == "readonly") ? true
					: false;
			//当敲Backspace键时，事件源类型非密码或单行、多行文本的，则退格键失效
			var flag2 = (ev.keyCode == 8 && t != "password" && t != "text" && t != "textarea") ? true
					: false;

			//判断
			if (flag2) {
				return false;
			}
			if (flag1) {
				return false;
			}
		}
		 $(".yijian").focus(function(){
			 function getNowFormatDate() {
	    		    var date = new Date();
	    		    var seperator1 = "年";
	    		    var seperator2 = "月";
	    		    var seperator3 = "日";
	    		    var month = date.getMonth() + 1;
	    		    var strDate = date.getDate();
	    		    if (month >= 1 && month <= 9) {
	    		        month = "0" + month;
	    		    }
	    		    if (strDate >= 0 && strDate <= 9) {
	    		        strDate = "0" + strDate;
	    		    }
	    		    var currentdate = date.getFullYear() + seperator1 + month + seperator2  +strDate +seperator3
	    		    return currentdate;
	    	}
	    	  $(this).next().html(getNowFormatDate());
	    	  $(this).next().next().val(getNowFormatDate());
	     });
		 
		 /* 返回列表 */
			function backList(){
				location.href="listTable.do";
			}
	</script>


</html>